import request from "@/utils/request";

// POST /api/mobile/proposal/save   新增合理化建议
export function proposal_save(query) {
  return request({
    url: "/article/mobile/proposal/save",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/edit    修改合理化建议
export function proposal_edit(query) {
  return request({
    url: "/article/mobile/proposal/edit",
    method: "post",
    params: query
  });
}

// POST /api/mobile/proposal/list   查询合理化建议
export function proposal_list(query) {
  return request({
    url: "/article/mobile/proposal/list",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/addBrowseNum   添加一次浏览
export function proposal_addBrowseNum(query) {
  return request({
    url: "/article/mobile/proposal/addBrowseNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/findById   查询详情页数据
export function proposal_findById(query) {
  return request({
    url: "/article/mobile/proposal/findById",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/addReadNum   添加一次阅读数
export function proposal_addReadNum(query) {
  return request({
    url: "/article/mobile/proposal/addReadNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/addLikeNum   添加一次点赞
export function proposal_addLikeNum(query) {
  return request({
    url: "/article/mobile/proposal/addLikeNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/addCollectNum   添加一次收藏
export function proposal_addCollectNum(query) {
  return request({
    url: "/article/mobile/proposal/addCollectNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/decCollectNum   取消一次收藏
export function proposal_decCollectNum(query) {
  return request({
    url: "/article/mobile/proposal/decCollectNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/listMyCollect   查询我的贴子
export function proposal_listMy(query) {
  return request({
    url: "/article/mobile/proposal/listMy",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/listMyCollect   我收藏的贴子
export function proposal_listMyCollect(query) {
  return request({
    url: "/article/mobile/proposal/listMyCollect",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/listCommentMy   评论我的
export function proposal_listCommentMy(query) {
  return request({
    url: "/article/mobile/proposal/listCommentMy",
    method: "post",
    params: query
  });
}
// POST /api/mobile/proposal/listLikeMy   点赞我的
export function proposal_listLikeMy(query) {
  return request({
    url: "/article/mobile/proposal/listLikeMy",
    method: "post",
    params: query
  });
}
///POST /api/mobile/proposal/deleteAll
export function proposal_delete(query) {
    return request({
      url: "/article/mobile/proposal/delete",
      method: "post",
      params: query
    });
  }
